package com.automannn.seataSamples.account.service;

import com.automannn.seataSamples.account.entity.AccountPO;
import com.automannn.seataSamples.api.dto.AccountDTO;
import com.automannn.seataSamples.api.response.ObjectResponse;
import com.baomidou.mybatisplus.service.IService;

/**
 * @author automannn
 * @Date 2022/3/24
 */
public interface IAccountService extends IService<AccountPO> {

    /**
     * 从账户中扣除余额
     * @param accountDTO 交易信息
     * @return 操作结果
     */
    ObjectResponse decreaseAccount(AccountDTO accountDTO);
}
